/* 保持原有样式不变 */
body {
    background-color: #0a192f;
    color: #ccd6f6;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

.header {
    text-align: center;
    margin-bottom: 40px;
    color: #4ECDC4;
    text-shadow: 0 0 15px rgba(78, 205, 196, 0.5);
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    color: #4ECDC4;
    text-decoration: none;
    padding: 8px 16px;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    transition: all 0.3s;
}

.back-btn:hover {
    background-color: rgba(78, 205, 196, 0.1);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

.content-box {
    background-color: rgba(30, 40, 60, 0.3);
    border: 1px solid rgba(0, 243, 255, 0.25);
    border-radius: 10px;
    padding: 30px;
    min-height: 800px;
}

.detection-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    height: 100%;
}

.media-box {
    flex: 1;
    border: 1px dashed rgba(78, 205, 196, 0.5);
    border-radius: 8px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.media-box h3 {
    color: #4ECDC4;
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(78, 205, 196, 0.3);
}

.media-placeholder {
    width: 100%;
    height: calc(100% - 50px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: rgba(204, 214, 246, 0.6);
    background-color: rgba(30, 40, 60, 0.2);
    border-radius: 4px;
}

.media-placeholder i {
    font-size: 48px;
    margin-bottom: 15px;
    color: rgba(78, 205, 196, 0.4);
}

.upload-btn {
    margin-top: 20px;
    padding: 8px 16px;
    background-color: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.upload-btn:hover {
    background-color: rgba(78, 205, 196, 0.2);
    box-shadow: 0 0 10px rgba(78, 205, 196, 0.5);
}

#detection-btn {
    margin: 20px auto;
    display: block;
    padding: 10px 20px;
    background-color: rgba(78, 205, 196, 0.2);
    color: #4ECDC4;
    border: 1px solid #4ECDC4;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 16px;
}

#detection-btn:hover {
    background-color: rgba(78, 205, 196, 0.3);
    box-shadow: 0 0 15px rgba(78, 205, 196, 0.6);
}

/* 新增文件选择相关样式 */
.file-input {
    display: none; /* 隐藏原生文件选择框 */
}

.selected-file-info {
    margin-top: 15px;
    padding: 10px;
    border-radius: 4px;
    background-color: rgba(78, 205, 196, 0.1);
    color: #4ECDC4;
    max-width: 80%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.preview-image {
    max-width: 100%;
    max-height: 400px;
    margin-top: 15px;
    border-radius: 4px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* 按钮禁用状态 */
button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 加载动画增强 */
.media-placeholder.loading {
    border-color: #4ECDC4;
    background-color: rgba(78, 205, 196, 0.1);
}

/* 拖拽区域高亮 */
.media-placeholder.drag-over {
    border-color: #4ECDC4;
    background-color: rgba(78, 205, 196, 0.1);
    transition: all 0.3s ease;
}

/* 结果信息样式 */
.detection-info {
    background-color: rgba(78, 205, 196, 0.1);
    border: 1px solid rgba(78, 205, 196, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

.detection-count {
    color: #4ECDC4;
    font-weight: bold;
    font-size: 16px;
}

/* 错误提示样式 */
.error-message {
    color: #ff6b6b;
    background-color: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}

/* 成功提示样式 */
.success-message {
    color: #51cf66;
    background-color: rgba(81, 207, 102, 0.1);
    border: 1px solid rgba(81, 207, 102, 0.3);
    border-radius: 4px;
    padding: 10px;
    margin-top: 10px;
}
